package com.wlstudy.leyou.common.enums;

public enum ExceptionEnum {
    CATEGORY_NOT_FOUND(404, "商品信息未查到！"),
    BRAND_NOT_FOUND(404, "品牌信息未查到！"),
    BRAND_SAVE_ERROR(500, "品牌信息新增失败"),
    BRAND_CATEGORY_SAVE_ERROR(500, "品牌分类信息新增失败"),
    UPLOAD_FILE_ERROR(500, "文件上传失败！"),
    UPLOAD_FILE_TYPE_NOT_MATCH(500, "上传失败，文件类型不匹配：{}"),
    UPLOAD_FILE_CONTENT_NOT_MATCH(500, "上传失败，文件内容不符合要求"),
    ;
    private int code;
    private String msg;

    ExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
